import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;


public class StopBoxHeaderEntry implements StopBoxEntry {
	private int height = 34;
	private int width = 250;
	private String customName;
	private String direction;
	private int stopID;

	public StopBoxHeaderEntry(int stopID, String customName, String direction) {
		this.customName = customName;
		this.direction = direction;
		this.stopID = stopID;
	}

	@Override
	public void draw(int xPos, int yPos, Graphics g) {
		g.setColor(Color.LIGHT_GRAY);
		g.fillRect(xPos, yPos, width, height);
		g.setColor(Color.BLACK);
		g.drawLine(xPos, yPos + height - 2, xPos + width - 1, yPos + height - 2);
		
		g.setColor(Color.BLACK);
		g.setFont(new Font("Dialog", Font.PLAIN, 18));
		g.drawString(customName, xPos + 2, yPos + 16);
		g.setFont(new Font("Dialog", Font.PLAIN, 12));
		g.drawString(direction + "   Stop ID # " + stopID, xPos + 2, yPos + 28);
		
	}

	@Override
	public int getHeight() {
		return height;
	}

}
